package com.pactera.madp.cp.common.util.file;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.InputStream;

/**
 * @author lx
 * @date 2021/7/15
 * @desc 文件上传基类
 */
public abstract class BaseFileHandler {

    <T> FileProps handFileUpload(T t, String fileKey, boolean isCover){return null;}

    <T> FileProps handFileUpload(T t, String fileKey, boolean isCover, boolean isUpload){return null;}

    FileProps uploadFile(MultipartFile file, String fileKey, boolean isCover){return null;}

    FileProps uploadFile(MultipartFile file, String fileKey, boolean isCover, boolean isUpload){return null;}

    FileProps uploadFile(File file, String fileKey, boolean isCover){return null;}

    FileProps uploadFile(InputStream in, String fileKey, boolean isCover){return null;}

    FileProps uploadFile(InputStream in, String fileKey, boolean isCover, boolean isUpload){return null;}

    FileProps uploadFile(String base64, String fileKey, boolean isCover){return null;}

    FileProps uploadFileByURL(String fileUrl, String fileKey){return null;}

    FileProps uploadFileByURL(String fileUrl, String fileKey, boolean isUpload){return null;}



}
